<?php
//查找表格是否存在



function select_table($table_name)
{
    $_sql="SHOW TABLES LIKE '$table_name' ";

    $result=mysql_query($_sql);

    if(mysql_num_rows($result)>0)
    {
        return $result;
    }
    else
    {
        return false;
    }

}

?>